import { CoolController, BaseController } from '@cool-midway/core';
import { NoticeEntity } from '../../entity/notice';

/**
 * 公告管理
 */
@CoolController({
  api: ['add', 'delete', 'update', 'info', 'list', 'page'],
  entity: NoticeEntity,
  pageQueryOp: {
    fieldEq: ['status'],
    addOrderBy: {
      id: 'asc'
    }
  },
})
export class NoticeController extends BaseController {}
